package cd.cdyb.sms.service;


import cd.cdyb.sms.dto.MessageCarrier;
import cd.cdyb.sms.dto.MessageRecordingDto;
import cd.cdyb.sms.dto.MessageRecordingStatisticsDto;
import cd.cdyb.sms.dto.PageResult;
import cd.cdyb.sms.dto.query.MessageRecordingQueryDto;

import java.util.Map;

public interface MessageRecordingService {

    /**
     * 新增消息记录
     *
     * @param messageCarrier 消息记录载体
     */
    void insertMessageRecording(MessageCarrier messageCarrier);

    /**
     * 客户端 统计分页
     */
    Map<String, Object> messageRecordingStatisticsPageWithClient(MessageRecordingQueryDto messageRecordingQueryDto);

    /**
     * 发送记录
     */
    PageResult<MessageRecordingDto> messageRecordingPageWithClient(MessageRecordingQueryDto messageRecordingQueryDto);

    /**
     * 统计
     */
    MessageRecordingStatisticsDto indexStatistics(MessageRecordingQueryDto messageRecordingQueryDto);
}
